package com.ruoyi.sqldow.service.impl;

import org.springframework.stereotype.Service;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * 发送成功后删除sql文件
 */
@Service
public class DeleteFileServiceImpl {
    public void DeleteFile(String path) throws FileNotFoundException, IOException {
        File file = new File(path);
        file.delete();
        System.out.println(path+"文件删除成功");
    }
}



